﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 导入凭证DTO Copy DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class CopyOfISVImportVoucherDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public CopyOfISVImportVoucherDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
		
		
		
					AttachmentCount= 0; 
				
					VoucherID= 0; 
				
					ImportType= 0; 
				

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.DescFlexField != null) 
			{
				this.DescFlexField.DoSerializeKeyList(dict);
			}
	        			if (this.SOB != null) 
			{
				this.SOB.DoSerializeKeyList(dict);
			}
	        			if (this.VoucherCategory != null) 
			{
				this.VoucherCategory.DoSerializeKeyList(dict);
			}
	        	        	        	        	        			if (this.Entries!=null)
			{
				foreach(ufida.u9.ait.openapi.CopyOfISVImportEntryDTOData objdata in this.Entries)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
				        	        			if (this.CFVoucherItems!=null)
			{
				foreach(ufida.u9.ait.openapi.CopyOfISVImportCFVoucherItemDTOData objdata in this.CFVoucherItems)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
				        	        			if (this.SOBVersion != null) 
			{
				this.SOBVersion.DoSerializeKeyList(dict);
			}

		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public CopyOfISVImportVoucherDTOData(  ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData descFlexField  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData sOB  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData voucherCategory  , System.String postedPeriod  , System.String createDate  , System.String voucherDisplayCode  , System.Int32 attachmentCount  , List<ufida.u9.ait.openapi.CopyOfISVImportEntryDTOData> entries  , System.Int64 voucherID  , List<ufida.u9.ait.openapi.CopyOfISVImportCFVoucherItemDTOData> cFVoucherItems  , System.Int32 importType  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData sOBVersion  )
		{
			initData();
			this.DescFlexField = descFlexField;
			this.SOB = sOB;
			this.VoucherCategory = voucherCategory;
			this.PostedPeriod = postedPeriod;
			this.CreateDate = createDate;
			this.VoucherDisplayCode = voucherDisplayCode;
			this.AttachmentCount = attachmentCount;
			this.Entries = entries;
			this.VoucherID = voucherID;
			this.CFVoucherItems = cFVoucherItems;
			this.ImportType = importType;
			this.SOBVersion = sOBVersion;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 描述性弹性域
		/// 导入凭证DTO Copy.Misc.描述性弹性域
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData m_descFlexField ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData DescFlexField
		{
			get	
			{	
				return m_descFlexField ;
			}
			set	
			{	
				m_descFlexField = value ;	
			}
		}
			
		

		/// <summary>
		/// 账簿
		/// 导入凭证DTO Copy.Misc.账簿
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_sOB ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData SOB
		{
			get	
			{	
				return m_sOB ;
			}
			set	
			{	
				m_sOB = value ;	
			}
		}
			
		

		/// <summary>
		/// 凭证类型
		/// 导入凭证DTO Copy.Misc.凭证类型
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_voucherCategory ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData VoucherCategory
		{
			get	
			{	
				return m_voucherCategory ;
			}
			set	
			{	
				m_voucherCategory = value ;	
			}
		}
			
		

		/// <summary>
		/// 记账会计期间
		/// 导入凭证DTO Copy.Misc.记账会计期间
		/// </summary>
		private System.String m_postedPeriod ;
		[DataMember(IsRequired=false)]
		public System.String PostedPeriod
		{
			get	
			{	
				return m_postedPeriod ;
			}
			set	
			{	
				m_postedPeriod = value ;	
			}
		}
			
		

		/// <summary>
		/// 制单日期
		/// 导入凭证DTO Copy.Misc.制单日期
		/// </summary>
		private System.String m_createDate ;
		[DataMember(IsRequired=false)]
		public System.String CreateDate
		{
			get	
			{	
				return m_createDate ;
			}
			set	
			{	
				m_createDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 凭证号
		/// 导入凭证DTO Copy.Misc.凭证号
		/// </summary>
		private System.String m_voucherDisplayCode ;
		[DataMember(IsRequired=false)]
		public System.String VoucherDisplayCode
		{
			get	
			{	
				return m_voucherDisplayCode ;
			}
			set	
			{	
				m_voucherDisplayCode = value ;	
			}
		}
			
		

		/// <summary>
		/// 附单据数
		/// 导入凭证DTO Copy.Misc.附单据数
		/// </summary>
		private System.Int32 m_attachmentCount ;
		[DataMember(IsRequired=false)]
		public System.Int32 AttachmentCount
		{
			get	
			{	
				return m_attachmentCount ;
			}
			set	
			{	
				m_attachmentCount = value ;	
			}
		}
			
		

		/// <summary>
		/// 导入分录集合
		/// 导入凭证DTO Copy.Misc.导入分录集合
		/// </summary>
		private List<ufida.u9.ait.openapi.CopyOfISVImportEntryDTOData> m_entries ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.CopyOfISVImportEntryDTOData> Entries
		{
			get	
			{	
				if (m_entries == null )
				{
					List<ufida.u9.ait.openapi.CopyOfISVImportEntryDTOData> n_m_list = new List<ufida.u9.ait.openapi.CopyOfISVImportEntryDTOData>() ;
					m_entries = n_m_list ;
				}
				return m_entries ;
			}
			set	
			{	
				m_entries = value ;	
			}
		}
			
		

		/// <summary>
		/// 凭证ID
		/// 导入凭证DTO Copy.Misc.凭证ID
		/// </summary>
		private System.Int64 m_voucherID ;
		[DataMember(IsRequired=false)]
		public System.Int64 VoucherID
		{
			get	
			{	
				return m_voucherID ;
			}
			set	
			{	
				m_voucherID = value ;	
			}
		}
			
		

		/// <summary>
		/// 导入现金流量项目集合
		/// 导入凭证DTO Copy.Misc.导入现金流量项目集合
		/// </summary>
		private List<ufida.u9.ait.openapi.CopyOfISVImportCFVoucherItemDTOData> m_cFVoucherItems ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.CopyOfISVImportCFVoucherItemDTOData> CFVoucherItems
		{
			get	
			{	
				if (m_cFVoucherItems == null )
				{
					List<ufida.u9.ait.openapi.CopyOfISVImportCFVoucherItemDTOData> n_m_list = new List<ufida.u9.ait.openapi.CopyOfISVImportCFVoucherItemDTOData>() ;
					m_cFVoucherItems = n_m_list ;
				}
				return m_cFVoucherItems ;
			}
			set	
			{	
				m_cFVoucherItems = value ;	
			}
		}
			
		

		/// <summary>
		/// 导入方式
		/// 导入凭证DTO Copy.Misc.导入方式
		/// </summary>
		private System.Int32 m_importType ;
		[DataMember(IsRequired=false)]
		public System.Int32 ImportType
		{
			get	
			{	
				return m_importType ;
			}
			set	
			{	
				m_importType = value ;	
			}
		}
			
		

		/// <summary>
		/// 账簿版本
		/// 导入凭证DTO Copy.Misc.账簿版本
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_sOBVersion ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData SOBVersion
		{
			get	
			{	
				return m_sOBVersion ;
			}
			set	
			{	
				m_sOBVersion = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																								
		#endregion 
	} 	
}
